<?php

namespace app\admin\model;

use app\admin\model\CommonModel;

class ReceiveAddressModel extends CommonModel
{


    const DEFAULT_ADDRESS    = 1;
    const NO_DEFAULT_ADDRESS = 0;


    public function user()
    {
        return $this->belongsTo('MemberModel', 'member_id');
    }

    public function getFullAddressAttr()
    {
        return "{$this->province}{$this->city}{$this->area}{$this->address}";
    }
}
